def line_conf():
    b = 15
    def line(x):
        nonlocal b
        b = b + 1
        return 2 * x + b
    return line       # return a function object

b = 50
my_line = line_conf()
#print(my_line.__closure__)
#print(my_line.__closure__[0].cell_contents)
print(my_line(5))
print(my_line(6))
